package com.cskaoyan.controller.lz_controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.lzpackage.feedback.FeedBackData;
import com.cskaoyan.bean.params.BaseParam;
import com.cskaoyan.lz_service.FeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/feedback")
public class AdminFeedBackListController {
    @Autowired
    FeedBackService feedBackService;
    @RequestMapping("list")
    public BaseRespVo list(String username, BaseParam param,String id) {
        FeedBackData userData = feedBackService.query(param,username,id);
        return BaseRespVo.ok(userData);
    }
}
